package com.example.ymm.modules1.entity.my.user;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * 群聊
 */

@Data
public class DbChatGroup implements Serializable {

    @TableId
    private String openConversationId;

    @NotEmpty(message = "群名称不能为空")
    @ApiModelProperty(value = "群名称")
    private String name;

    @ApiModelProperty(value = "群主")
    private String owner;//群主

    private String chatid;

    @TableField(exist = false)
    String owner_name;

    @TableField(exist = false)
    String useridlist_name;

    String useridlist;//成员列表

    String startDate;//开始日期字符串

    String templatePrefix;//模版前缀

    String templateSuffix; //模版后缀

    String nameSuffix; //名称后缀

    String deptNames; //部门名称

    @TableField(exist = false)
    List<String> userIdLists;

    Integer state;//状态,0禁用,1启用

    Integer totalType;//统计方式 1 从起始日期开始统计 2 当前月份 3 按当年统计

    @ApiModelProperty(value = "是否删除：0->未删；1->已删")
    @TableLogic
    private Integer isDelete;

    @TableField(fill= FieldFill.INSERT)
    private Timestamp createTime;

    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;



}
